﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReportH.aspx.cs" Inherits="Manage_Emp3_ReportH" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
     <style type="text/css">
<!--

#tab_zzjs_2 { position:relative; width:98%; height:750px; padding-top:15px; margin:15px; overflow:hidden; }
.tabpage_noselected_title { position:relative;  float:left; height:14px; padding:0 7px 0 8px; margin-left:0px; border-left:solid 1px #ccc; border-right:solid 1px #fff; text-align:center; background:#fff; cursor:pointer; }
.tabpage_selected_title {position:relative;  float:left; height:14px; padding:0 7px 0 8px; margin-left:0px; border-left:solid 1px #ccc; border-right:solid 1px #fff; text-align:center; background:#fff; cursor:pointer; height:18px; padding:5px 7px 0 7px; margin:-6px 0 0 0; border:solid #060; border-width:1px 1px 0; color:#ff0000; }
.chooselist{position:absolute; left:0; top:32px;  width:98%; height:700px;  overflow:auto;padding:5px; border:solid 1px #060; color:#666; }

-->
</style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True"
        ScriptMode="Release" EnableScriptLocalization="True">
    </asp:ScriptManager>
    <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA" align="center">
        <tr>
            <td height="26" background="../skin/images/newlinebg3.gif">
                <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="center" >
                            <span style="font-size: 14px; font-weight: bold">线上讲师统计</span>
                        </td>
                       
                    </tr>
                </table>
            </td>
        </tr>
    </table>
     <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
     <div id="tab_zzjs_2">
  <%--   <asp:LinkButton ID="lbtnselectCenter" runat="server" 
               CssClass="tabpage_selected_title" Text="选择指挥中心" 
               onclick="lbtnselectCenter_Click"></asp:LinkButton>
        <div id="divcenterlist" runat="server" class="chooselist" style=" visibility:visible">
                <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
              <tr bgcolor='#EEF4EA'>
                <td background='skin/images/wbg.gif' align='center'>
                  <table border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td width='70'>
                      关键字：
                    </td>
                    <td width='160'>
                        <asp:TextBox ID="txtkey" runat="server" Width="150px"></asp:TextBox>
                    </td>
                     
                    <td width="100px">
                     <asp:ImageButton ID="ibtnsearchcenter" runat="server" Width="45px" Height="20px" 
                            BorderStyle="None"  CssClass="np"  
                            ImageUrl="../skin/images/frame/search.gif" onclick="ibtnsearchcenter_Click" 
                              />
                     
                    </td>
                      
                    <td>
              
                    </td>
                   </tr>
                  </table>
                </td>
              </tr>
            </table>
               <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
           
  
            <tr bgcolor="#E7E7E7" style="border-bottom:none">
	            <td height="24" colspan="4" background="../skin/images/tbg.gif">指挥中心列表
                                </td>
            </tr>
             
            <tr style="background-color:#ffffff">
            <td >
                  <asp:GridView ID="GridView2" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                                    AutoGenerateColumns="False"  
                                    DataKeyNames="CenterId"  DataMember="Name" SelectedIndex="0" 
                      OnRowDataBound="GridView2_RowDataBound"  >
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择">
                                            <ItemTemplate>
                                                  <asp:CheckBox ID="chkID" runat="server" />
                                                  <asp:HiddenField ID="hdfCenterId" runat="server" Value='<%#Eval("CenterId") %>' />
                                            </ItemTemplate>
                                            <ItemStyle width="40px" HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="名称"   SortExpression="Name">
                                            <ItemTemplate>
                                                <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                            </ItemTemplate>
                                       
                                        </asp:TemplateField>
                                     
                                    </Columns>
                                    <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                                    <RowStyle Height="20px" BackColor="#FFFFFF"  ForeColor="#000000" />
                                    <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#FCFDEE" />
                                    <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                                    <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                                    <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                                </asp:GridView>
           </td>
           </tr>
            <tr bgcolor="#FAFAF1">
            <td height="28"  style=" padding-left:14px">
	            <asp:CheckBox ID="selectAllCenter" runat="server"  Text="全选" 
                     Enabled="false" AutoPostBack="true" 
                    oncheckedchanged="selectAllCenter_CheckedChanged" />
            </td>
            </tr>
             <tr align="right" bgcolor="#EEF4EA">
                        <td height="36" align="center">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" 
                                PageSize="20" onpagechanged="AspNetPager1_PageChanged">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
            </table>
        </div>--%>
         <asp:LinkButton ID="lbtnselectCity" runat="server" CssClass="tabpage_selected_title" Text="选择城市" OnClick="lbtnselectCity_Click"></asp:LinkButton>
        <div id="divcitylist" runat="server" class="chooselist" style=" visibility:visible">
              <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
              <tr bgcolor='#EEF4EA'>
                <td background='skin/images/wbg.gif' align='center'>
                  <table border='0' cellpadding='0' cellspacing='0'>
                    <tr>
                    <td width='70'>
                      关键字：
                    </td>
                    <td width='160'>
                        <asp:TextBox ID="txtckey" runat="server" Width="150px"></asp:TextBox>
                    </td>
                     
                    <td width="100px">
                <asp:ImageButton ID="ibtnsearchCity" runat="server" Width="45px" Height="20px" 
                            BorderStyle="None"  CssClass="np"  ImageUrl="../skin/images/frame/search.gif" 
                            onclick="ibtnsearchCity_Click"  />
                     
                    </td>
                      
                    <td>
              
                    </td>
                   </tr>
                  </table>
                </td>
              </tr>
            </table>
             <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
            <tr bgcolor="#E7E7E7" style="border-bottom:none">
	            <td height="24" colspan="4" background="../skin/images/tbg.gif">城市列表
                                </td>
            </tr>
             
            <tr style="background-color:#ffffff">
            <td >
                  <asp:GridView ID="GridView3" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                                    AutoGenerateColumns="False"  
                                    DataKeyNames="CityId"  DataMember="Name" SelectedIndex="0" 
                      OnRowDataBound="GridView3_RowDataBound">
                                     <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                          <asp:CheckBox ID="chkID" runat="server" />
                                          <asp:HiddenField ID="hdfCityId" runat="server" Value='<%#Eval("CityId") %>' />
                                    </ItemTemplate>
                                    
                                    <ItemStyle width="40px" HorizontalAlign="Center"  />
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="名称"  SortExpression="Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                   
                                </asp:TemplateField>
                                
                            </Columns>
                                    <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                                    <RowStyle Height="20px" BackColor="#FFFFFF" ForeColor="#000000" />
                                    <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#FCFDEE" />
                                    <SelectedRowStyle BackColor="#FFFFFF"  ForeColor="#000000" />
                                    <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                                    <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                                </asp:GridView>
           </td>
           </tr>
            <tr bgcolor="#FAFAF1">
            <td height="28"  style=" padding-left:14px">
	            <asp:CheckBox ID="selectAllCity" runat="server"  Text="全选" 
                    oncheckedchanged="selectAllCity_CheckedChanged" Enabled="false" AutoPostBack="true" />
            </td>
            </tr>
             <tr align="right" bgcolor="#EEF4EA">
                        <td height="36" align="center">
                            <webdiyer:AspNetPager ID="AspNetPager2" runat="server" OnPageChanged="AspNetPager2_PageChanged"
                                PageSize="20">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
            </table>
        </div>
        <asp:LinkButton ID="lbtnselectClass" runat="server" CssClass="tabpage_noselected_title" 
               Text="选择课程" onclick="lbtnselectClass_Click"></asp:LinkButton>
        <div id="divclasslist" runat="server" class="chooselist" style="visibility:hidden">
                  <table width='98%' border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center"
                    style="margin-top: 8px">
                    <tr bgcolor='#EEF4EA'>
                        <td background='skin/images/wbg.gif' align='center'>
                            <table border='0' cellpadding='0' cellspacing='0' align='center'>
                                <tr>
                                    <td width='100'>
                                        课程名称或编号：
                                    </td>
                                    <td width='160'>
                                        <asp:TextBox ID="txtkeyword" runat="server" Width="150px"></asp:TextBox>
                                    </td>
                                    <td width="100px">
                                        <asp:ImageButton ID="ibtnsearch" runat="server" Width="45px" Height="20px" BorderStyle="None"
                                            CssClass="np" ImageUrl="../skin/images/frame/search.gif" OnClick="ibtnsearch_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center"
                    style="margin-top: 8px">
                    <tr bgcolor="#E7E7E7">
                        <td height="24" background="../skin/images/tbg.gif">
                            课程选择
                        </td>
                    </tr>
                    <tr style="background-color: #ffffff">
                        <td>
                            <asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"
                                AutoGenerateColumns="False" DataKeyNames="ClassId" DataMember="Name" SelectedIndex="0"
                                OnRowDataBound="GridView1_RowDataBound" GridLines="Both" AllowPaging="False"
                                PageIndex="1" AllowSorting="true" OnSorting="GridView1_Sorting" Visible="false">
                                <Columns>
                                    <asp:TemplateField HeaderText="选择">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkID" runat="server" />
                                            <asp:HiddenField ID="hdfClassId" runat="server" Value='<%#Eval("ClassId") %>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="40px" HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="课程类型" SortExpression="ClassTypeName">
                                        <ItemTemplate>
                                            <asp:Label ID="lblTypename" runat="server" Text='<%# Eval("ClassTypeName") %>'></asp:Label>
                                            <asp:HiddenField ID="hidTypeId" runat="server" Value='<%#Eval("ClassTypeId") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="课程编号" SortExpression="Code">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCode" runat="server" Text='<%# Eval("Code") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="课程名称" SortExpression="Name">
                                        <ItemTemplate>
                                            <asp:Label ID="lblname" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                                <RowStyle Height="20px" BackColor="#FFFFFF" ForeColor="#000000" />
                                <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#FCFDEE" />
                                <SelectedRowStyle BackColor="#FFFFFF" ForeColor="#000000" />
                                <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#FCFDEE" ForeColor="000000" />
                                <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr bgcolor="#FAFAF1">
                        <td height="28" style="padding-left: 14px">
                            <asp:CheckBox ID="selectAll" runat="server" Text="全选" OnCheckedChanged="selectAll_CheckedChanged"
                                AutoPostBack="true" />&nbsp;
                        </td>
                    </tr>
                    <tr align="right" bgcolor="#EEF4EA">
                        <td height="36" align="center">
                            <webdiyer:AspNetPager ID="pager1" runat="server" OnPageChanged="pager1_PageChanged"
                                PageSize="20">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                </table>
            </div>
      <asp:LinkButton ID="lbtnviewreport" runat="server" Text="查看报表" 
               CssClass="tabpage_noselected_title" onclick="lbtnviewreport_Click"></asp:LinkButton>
     <div id="divreport" runat="server" class="chooselist" style="visibility:hidden">  
    <table width='98%' border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center"
        style="margin-top: 8px">
        <tr bgcolor='#EEF4EA'>
            <td background='skin/images/wbg.gif' align='center'>
                <table border='0' cellpadding='0' cellspacing='0' align='center'>
                    <tr>
                        <td width='100'>
                            <asp:Button ID="btnViewReport" runat="server" Text="查看报表" OnClick="btnViewReport_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
  
        <div style="text-align: center; width: 100%; margin-left: 10px">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="600px" Width="98%">
            </rsweb:ReportViewer>
        </div>
     </div> 
     </div> 
      </ContentTemplate>
    
    </asp:UpdatePanel> 
    </form>
</body>
</html>
